package com.keyware.kd.service.itf.message;

import java.util.List;

import com.keyware.kd.repository.entity.index.MessageTable;
import com.keyware.kd.vo.index.MessageTableVo;


public interface MessageService {
	
	/**
	 * 
	 * @author: 璧典簹鑸�
	 * @Title: insertMessage
	 * @Description: 鎻掑叆涓�潯鏂扮殑娑堟伅
	 * @param messageContent	娑堟伅涓婚鍐呭
	 * @param modelName			瑕佽烦杞殑妯″潡鍚嶇О(涓枃妯″潡鍚嶇О鍗冲彲)
	 * @param messageUrl		璺宠浆鐨剈rl
	 * @param receiverId		鎺ュ彈浜篒D
	 * @param projectId			椤圭洰ID
	 * @param status			寰呭姙杩樻槸寰呴槄 锛�锛氬緟闃�1锛氬緟鍔烇級
	 * @return void
	 */
	void insertMessage(String messageContent,String modelName,String messageUrl,String receiverId,String projectId,String status,String tableFlag);
	
	 /**
     * 
     * @author: 璧典簹鑸�
     * @Title: selectByInfo
     * @Description: 鏌ヨ
     * @param record
     * @return
     * @return List<MessageTableVo>
     */
    List<MessageTable> selectByInfo(MessageTableVo record);
    
    
    int updateByPrimaryKeySelective(MessageTable record);
    
    
    /**
     * 
     * @author: 璧典簹鑸�
     * @Title: updateMessageStatus
     * @Description: 鏍规嵁Id灏嗘秷鎭嚦涓哄凡璇�
     * @param id
     * @return void
     */
    void updateMessageStatus(String id);
    
    /**
     * @author 浠ｉ挗
     * @title锛氭牴鎹」鐩甶d鍒犻櫎鏁版嵁
     * @param projectId
     * @return
     */
    int deleteByProjectId(String projectId);
    
    MessageTable selectByPrimaryKey(String messageId);

	/*
	*
	* @Title: insertMessageByObj
	* @Description: 添加审批信息
	* @param  messageTable
	* @author 李军荣
	* @return void
	*/
    void insertMessageByObj(MessageTable messageTable);

}
